let startDate11 = "2023-9-25";    //开始时间
let TimeS = 90     //  多久
  // 获取 时间天数
  let test_da = countWorkdays(startDate11)
    //浏览器中获取缓存 时间天数   
    if (localStorage.getItem("NotData_Me") >=TimeS) {

      // 满足锁定时间后的操作代码
    }

function countWorkdays(startDate) {
  let currentDate = new Date(startDate);
  let xitDate = new Date();
  let workdays = 0;

  while (currentDate < xitDate) {
    workdays++;
    currentDate.setDate(currentDate.getDate() + 1);
  }

  return workdays;      // 返回开始时间和结束时间的差值
}